import request from '@/common/request.js'

// 设备信息
export function checkout(data) {
	return request.globalRequest('/order/checkout', 'POST', data, 2);
}

export function orderList(data) {
	return request.globalRequest('/order/list', 'POST', data, 2);
}

export function create(data) {
	return request.globalRequest('/order/create', 'POST', data, 2);
}

export function toPay(data) {
	return request.globalRequest('/payment/toPay', 'POST', data, 2);
}

export function aftersalesList(data) {
	return request.globalRequest('/aftersales/list', 'POST', data, 2);
}

export function orderCancel(data) {
	return request.globalRequest('/order/cancel', 'POST', data, 2);
}

export function orderDetail(data) {
	return request.globalRequest('/order/detail', 'POST', data, 2);
}

export function transitStep(data) {
	return request.globalRequest('/aftersales/transit_step', 'POST', data, 2);
}

export function orderReceive(data) {
	return request.globalRequest('/order/receive', 'POST', data, 2);
}

export function replacement(data) {
	return request.globalRequest('/aftersales/replacement', 'POST', data, 3);
}

export function returns(data) {
	return request.globalRequest('/aftersales/returns', 'POST', data, 3);
}

export function aftersalesDetail(data) {
	return request.globalRequest('/aftersales/detail', 'POST', data, 2);
}

export function getDeliveryCorpList(data) {
	return request.globalRequest('/public/getDeliveryCorpList', 'POST', data, 2);
}

export function transitTabs(data) {
	return request.globalRequest('/aftersales/transit_tabs', 'POST', data, 2);
}

export function orderPayment(data) {
	return request.globalRequest('/order/payment', 'POST', data, 3);
}


